home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000107_bruce@pdh.com_Wed Feb 2 12:40 MST 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  4KB

  1. Received: from yvax2.byu.edu by maine.et.byu.edu; Wed, 2 Feb 1994 12:40:30 -0700
  2. Return-Path: <bruce@pdh.com>
  3. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  4.  id <01H8ES5PDIO001A2QF@yvax.byu.edu>; Wed, 2 Feb 1994 12:39:43 MST
  5. Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
  6.  id <01H8ERPAAUQO8Y4YL7@yvax.byu.edu>; Wed, 2 Feb 1994 12:24:26 MST
  7. Received: from yvax.byu.edu by alaska.et.byu.edu; Wed, 2 Feb 1994 12:23:27 -0700
  8. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  9.  id <01H8EQY4UYO0019YM1@yvax.byu.edu>; Wed, 2 Feb 1994 12:02:49 MST
  10. Received: from snowbird.pdh.com (pdh.com) by yvax.byu.edu (PMDF V4.3-3 #4169)
  11.  id <01H8EQL7BGNK01A80J@yvax.byu.edu>; Wed, 2 Feb 1994 11:52:26 MST
  12. Received: from boreal.pdh.com by snowbird.pdh.com
  13.  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0) id AA17943; Wed, 2 Feb 94 10:47:44 PST
  14. Received: by boreal.pdh.com (NX5.67c/NX3.0X) id AA07562; Wed,
  15.  2 Feb 94 10:48:33 -0800
  16. Received: by NeXT.Mailer (1.87.1)
  17. Received: by NeXT Mailer (1.87.1)
  18. Date: Wed, 02 Feb 1994 10:48:33 -0800
  19. From: bruce@pdh.com (Bruce McKenzie)
  20. Subject: Re: More class ideas
  21. To: Doug McClure <ets!dougm@uunet.uu.net>
  22. Cc: misckit@byu.edu
  23. Reply-To: Bruce_McKenzie@pdh.com
  24. Message-Id: <9402021847.AA17943@snowbird.pdh.com>
  25. Content-Transfer-Encoding: 7BIT
  26. Status: RO
  27.  
  28. > MiscProcess     This class will handle running another
  29. > process from an application in either the foreground or
  30. > background.
  31. >
  32.  
  33. Check out the Subprocess class in the Examples. It has "features" ;-) like only handling 1024 chars return from a command, but it's a start.
  34.     
  35. > MiscUnix (subclass MiscProcess)     This will be an
  36. > interface to standard UNIX file commands.  Things like
  37. > chmod, mv, cp, ln.  Since this class is a subclass of
  38. > MiscProcess, they should be able to run in foreground or
  39. > background.
  40. >
  41.  
  42. Actually, I think that a good number of these could be methods/categories of MiscFile. Perhaps it would be good to also have a MiscPipe class that takes a stream and returns a massaged stream.
  43.     
  44. > MiscFile     This class will be used to handle generic file
  45. > I/O.  Presumably it would encompass most/all of the
  46. > standard file I/O commands (getchar, putchar, printf,
  47. > read, write, etc).  This would be a great class to clean up
  48. > all the file I/O that a program might use, replacing it
  49. > with a clean class that would also make it more portable.
  50. > When OpenStep comes out on the Sun's, a MiscFile could be
  51. > written for Sun's SysVish file I/O.   This class would have
  52. > several subclasses then:  MiscSerial, MiscSocket, ...
  53. > Each of these classes would just add whatever extra
  54. > capabilities were needed for dealing with those types of
  55. > file descriptors.  MiscLogFile would be replaced by
  56. > MiscFile.
  57. >
  58.  
  59. > MiscLogger (subclass MiscFile)     This class would be a a
  60. > facility for printing 'log' message.  Each message would
  61. > have a priority level given to it when the print message is
  62. > sent, and the class could be told what priority levels to
  63. > print out.  Ie: logLevel:(int)priority message:(const
  64. > char *)format, ...  If the current priority level is less
  65. > than the one specified the message would or would not
  66. > print, depending on how the class is designed.  This class
  67. > could be used for doing error/debugging output.
  68. >
  69.  
  70. We have discussed this type of stuff, but have never put fingers to keyboard. We found that it's actually more interesting to have a mask instead of a level. Why not both?
  71.  
  72. > MiscMail     This would allow the creation of a mail message
  73. > from within an application.  Standard mail only. 
  74. >
  75.  
  76. This is a 20 minute class: the objects of the class ARE mail messages that you can set up and ask to deliver themselves. Currently implemented through speaker/listener. Way cool. BTW, DolphinKit has this.
  77.     
  78. ---
  79.  
  80. Bruce McKenzie (bruce@pdh.com, NeXTMail OK)
  81. PDH Inc. 2635 N. First St. Ste 224, San Jose, CA  95134
  82. voice: 408/428-9596, fax: 408/428-9599
  83. Epicenter: Section 127, Row 22, Seats 13-14
  84.     "He's with the Office of Unforeseen Atomic Events."
  85. * Opinions expressed are those of my own twisted mind, not my employer's *
  86. ---